package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.SystemMessage;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.SystemMessageQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SystemMessageMapper {
    int insert(SystemMessage record);

    List<SystemMessage> selectAll();

    List selectForList(QueryObject qo);

    void changeState(QueryObject qo);

    void insertSystemMessage(SystemMessageQuery qo);

    int queryMessageCount(@Param("authorId") Long id, @Param("state") int state);
}